package cn.lili.modules.promotion.serviceimpl;

import cn.lili.modules.promotion.entity.dos.TicketArea;
import cn.lili.modules.promotion.mapper.TicketAreaMapper;
import cn.lili.modules.promotion.service.TicketAreaService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class TicketAreaServiceImpl extends ServiceImpl<TicketAreaMapper, TicketArea>
        implements TicketAreaService {

    /**
     * 获取区域列表
     * @return
     */
    @Override
    public List<TicketArea> getList () {
        LambdaQueryWrapper<TicketArea> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(TicketArea::getStatus, 1);
        return this.list(queryWrapper);
    }
}
